<?php
/**
 * Note: 游戏相关配置
 */
return [
    'config_path' => public_path('game/config'),
    // 操作密码
    'operation_password' => '19910331',
    // AES加密密钥 aes-256-cbc 32位
    'aes_key' => '123456789012345678901234567890ab',

    'apk' => [
        'namePrefix' => env('APK_NAME_PREFIX'),
        'basePath' => public_path('static/apk/base/'),
        'outputPath' => public_path('static/apk/output/'),

        'apkSigner' => base_path(env('APK_JAR_SIGNER', '')),// apksigner.jar
        'keyStore' => base_path(env('APK_KEY_STORE', '')), // 签名密钥库jks
        'keyPass' => env('APK_KEY_PASS', ''), // 密钥库密码
        'keyAlias' => env('APK_KEY_ALIAS', ''), // 密钥库别名
        'scheme' => env('APK_SCHEME', '')
    ],

    // 安全域名, 打入包内, 客户端请求平台的域名
    'safeDomains' => explode(',', env('SAFE_DOMAINS', '')),

    // CPL API 文档配置
    'cpl_api_word' => [
        'apiUrl' => env('CPL_API_URL'),
        'websiteUrl' => env('CPL_WEBSITE_URL'),
        'basePath' => storage_path('word/base'),
        'outputPath' => storage_path('word/output'),
    ],
    // 服务端地址
    'server' => explode(',', env('GAME_SERVER', '')),
    // 权益白名单IP
    'withdraw_white_ip' => explode(',', env('WITHDRAW_WHITE_IP', '')),
    // CDN的站点目录
    'cdn_site_url' => env('CDN_SITE_URL', ''),
    // 登录地址限制
    'login_ip_addr_limit' => env('LOGIN_IP_ADDR_LIMIT', false),

    'avatar_max' => env('AVATAR_MAX', 10),
    'currency_bullet_scale' => env('CURRENCY_BULLET_SCALE', 40000),
    'currency_hb_scale' => env('CURRENCY_HB_SCALE', 10000),
    'currency_ticket_scale' => env('CURRENCY_TICKET_SCALE', 10),

    // 支付通道费率
    'pay_channel_fee_alipay' => env('PAY_CHANNEL_FEE_ALIPAY', 0),
    'pay_channel_fee_wechat' => env('PAY_CHANNEL_FEE_WECHAT', 0),
    // 权益通道费率
    'withdraw_channel_fee_yajie' => env('WITHDRAW_CHANNEL_FEE_YAJIE', 0),
    // 同步黑名单库
    'sync_black_remote_repo_enable' => env('SYNC_BLACK_REMOTE_REPO_ENABLE', false),
];
